package net.lab1024.sa.admin.module.business.erp.dao;

import java.util.List;

import net.lab1024.sa.admin.module.business.erp.domain.entity.AccountbEntity;
import net.lab1024.sa.admin.module.business.erp.domain.entity.MmordbEntity;
import net.lab1024.sa.admin.module.business.erp.domain.form.query.MmordbQueryForm;
import net.lab1024.sa.admin.module.business.erp.domain.vo.MmordbVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 生产订单与用户关系表 Dao
 *
 * @Author AKITA
 * @Date 2025-04-19 12:52:24
 * @Copyright AKITA
 */

@Mapper
public interface MmordbDao extends BaseMapper<MmordbEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<MmordbVO> queryPage(Page page, @Param("queryForm") MmordbQueryForm queryForm);

    List<MmordbEntity> selectCount(@Param("absId") Integer idList);

    List<AccountbEntity> selectCountAll(@Param("absId") Integer idList);

    Integer getMaxLineNum(@Param("docEntry") Long docEntry);
}
